import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
// 导入在线icon
import './assets/font/iconfont.css'

import 'vant/lib/index.css'
// 导入flexible
import 'amfe-flexible'
import * as allFilter from '@/filter'
// 全局引入echarts
import * as echarts from 'echarts'

Vue.use(Vant)

// 全局注册过滤器
Object.keys(allFilter).forEach((item) => {
  Vue.filter(item, allFilter[item])
})

Vue.config.productionTip = false

Vue.prototype.$echarts = echarts

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
